package com.zzx.tree;

import java.util.List;

public class Tree {
    /**
     * 根节点的位置
     */
    private Integer root;

    /**
     * 节点数量
     */
    private Integer nodeSize;
    /**
     * 树节点
     */
    private List<TreeNode> nodes;

    public Integer getRoot() {
        return root;
    }

    public void setRoot(Integer root) {
        this.root = root;
    }

    public Integer getNodeSize() {
        return nodeSize;
    }

    public void setNodeSize(Integer nodeSize) {
        this.nodeSize = nodeSize;
    }

    public List<TreeNode> getNodes() {
        return nodes;
    }

    public void setNodes(List<TreeNode> nodes) {
        this.nodes = nodes;
    }
}
